/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * BuyArea.java
 *
 * Created on 2008-12-18, 15:22:59
 */
package impss;

import java.sql.*;
import java.io.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import javax.swing.table.*;

/**
 *
 * @author Mikehood
 */
public class BuyArea extends javax.swing.JFrame {

    int id, selectedRow, selectedID;
    String selectedOrder = "";
    Object[][] a, b, d;
    Object[] c, e;
    ResultSet rs;
    boolean phoneChosen = false;
    boolean expressChosen = false;
    int pid, eid, sum;
    DBAdapter adapter;

    public void setID(int i) {
        id = i;
    }

    public void setOrderTable() {
        List<Buy> list = new ArrayList<Buy>();
        try {
            String sql = "select * from buy where(customerID='" + id + "' and buyState='0');";
            rs = adapter.executeQuery(sql);
            while (rs.next()) {
                Buy ac = new Buy();
                ac.setBuyID(rs.getInt("buyID"));
                ac.setPhoneID(rs.getInt("phoneID"));
                ac.setExpressID(rs.getInt("expressID"));
                ac.setBuyNumber(rs.getInt("buyNumber"));
                list.add(ac);
            }
        } catch (SQLException e) {
        }
        int size = list.size();
        d = new Object[size][4];
        e = new Object[size];
        try {
            for (int i = 0; i < size; i++) {
                d[i][0] = list.get(i).getBuyID();
                d[i][1] = list.get(i).getPhoneID();
                d[i][3] = list.get(i).getBuyNumber();
                e[i] = list.get(i).getExpressID();
            }
            for (int i = 0; i < size; i++) {
                rs = adapter.executeQuery("select expressName from express where(expressID='" + e[i] + "');");
                rs.next();
                d[i][2] = rs.getString(1);
            }
        } catch (SQLException e) {
        }
        jTable3.setModel(new javax.swing.table.DefaultTableModel(d, new String[]{"订单号", "手机型号", "快递公司", "数量"}));
    }

    public void setTable() {
        List<Phone> list = new ArrayList<Phone>();
        try {
            String sql = "select * from phone where(phoneSum>'0' and designState='2');";
            rs = adapter.executeQuery(sql);
            while (rs.next()) {
                Phone ac = new Phone();
                ac.setPhoneID(rs.getInt("phoneID"));
                ac.setPhoneName(rs.getString("phoneName"));
                ac.setPhoneColor(rs.getString("phoneColor"));
                ac.setPhoneMaterial(rs.getString("phoneMaterial"));
                ac.setPhoneView(rs.getString("phoneView"));
                ac.setPhoneInfo(rs.getString("phoneInfo"));
                ac.setPhonePrice(rs.getInt("phonePrice"));
                list.add(ac);
            }
        } catch (SQLException e) {
        }
        int size = list.size();
        a = new Object[size][7];
        for (int i = 0; i < size; i++) {
            a[i][0] = list.get(i).getPhoneID();
            a[i][1] = list.get(i).getPhoneName();
            a[i][2] = list.get(i).getPhoneColor();
            a[i][3] = list.get(i).getPhoneMaterial();
            a[i][4] = list.get(i).getPhoneView();
            a[i][5] = list.get(i).getPhoneInfo();
            a[i][6] = list.get(i).getPhonePrice();
        }
        jTable1.setModel(new javax.swing.table.DefaultTableModel(a, new String[]{"型号", "名称", "颜色", "材质", "样式", "介绍", "价格"}));

        List<Express> list1 = new ArrayList<Express>();
        try {
            String sql = "select * from express;";
            rs = adapter.executeQuery(sql);
            while (rs.next()) {
                Express ex = new Express();
                ex.setExpressID(rs.getInt("expressID"));
                ex.setExpressName(rs.getString("expressName"));
                ex.setExpressTime(rs.getInt("expressTime"));
                ex.setExpressPrice(rs.getInt("expressPrice"));
                list1.add(ex);
            }
        } catch (SQLException e) {
        }
        int size1 = list1.size();
        b = new Object[size1][3];
        c = new Object[size1];
        for (int i = 0; i < size1; i++) {
            c[i] = list1.get(i).getExpressID();
            b[i][0] = list1.get(i).getExpressName();
            b[i][1] = list1.get(i).getExpressTime();
            b[i][2] = list1.get(i).getExpressPrice();
        }
        jTable2.setModel(new javax.swing.table.DefaultTableModel(b, new String[]{"快递公司", "运送天数", "收费价格"}));
    }

    private int submit() {
        try {
            String sql = "select max(buyID) from buy;";
            rs = adapter.executeQuery(sql);
            rs.next();
            int bid = rs.getInt(1) + 1;
            sql = "select phoneSum from phone where(phoneID='" + pid + "');";
            rs = adapter.executeQuery(sql);
            rs.next();
            if (sum > rs.getInt(1)) {
                return 2;
            }
            sql = "insert into buy values('" + bid + "','" + pid + "','" + eid + "','" + id + "','" + sum + "','0')";
            adapter.execute(sql);
        } catch (SQLException e) {
            return 1;
        }
        if (!adapter.isSuccessful()) {
            return 1;
        }
        return 0;
    }

    private void setOrder() {
        if (!phoneChosen) {
            return;
        }
        if (!expressChosen) {
            return;
        }
        sum = Integer.parseInt(jTextField1.getText());
        int pRow = jTable1.getSelectedRow();
        int eRow = jTable2.getSelectedRow();
        pid = a[pRow][0].hashCode();
        eid = c[eRow].hashCode();
        String ename = b[eRow][0].toString();
        jTextField2.setText("购买" + sum + "部" + pid + "型手机，由" + ename + "快递公司送货");
    }

    /** Creates new form BuyArea */
    public BuyArea() {
        initComponents();
        adapter = new DBAdapter();
        setTable();
        setOrderTable();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jLabel3 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        jButton2 = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jButton3 = new javax.swing.JButton();

        setTitle("订购");

        jButton1.setText("购买");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jLabel1.setText("订购数量：");

        jTextField1.setText("1");
        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextField1KeyReleased(evt);
            }
        });

        jLabel2.setText("购物清单：");

        jTextField2.setEditable(false);
        jTextField2.setText("无");

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "快递公司", "运送天数", "收费价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, true
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable2MouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(jTable2);

        jLabel4.setText("选择快递公司：");

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "型号", "名称", "颜色", "材质", "样式", "介绍", "价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, true, false, false, true, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable1MouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jTable1);
        jTable1.getColumnModel().getColumn(0).setPreferredWidth(60);
        jTable1.getColumnModel().getColumn(1).setPreferredWidth(60);
        jTable1.getColumnModel().getColumn(2).setPreferredWidth(60);
        jTable1.getColumnModel().getColumn(3).setPreferredWidth(60);
        jTable1.getColumnModel().getColumn(4).setPreferredWidth(60);
        jTable1.getColumnModel().getColumn(5).setPreferredWidth(100);
        jTable1.getColumnModel().getColumn(6).setPreferredWidth(60);

        jLabel3.setText("选择手机：");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel3))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 406, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel4))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 417, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(24, 24, 24)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 270, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(191, 191, 191)
                        .addComponent(jButton1)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addContainerGap())
        );

        jTabbedPane1.addTab("购物", jPanel1);

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "订单号", "手机型号", "快递公司", "数量"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable3MouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(jTable3);

        jLabel5.setText("管理未发货的订单：");

        jLabel6.setText("修改订购数量：");

        jButton2.setText("提交修改的订单");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel7.setText("选择的订单：");

        jLabel8.setText("无");

        jButton3.setText("取消这个订单");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 443, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel6)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabel7)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel8)))
                                .addGap(79, 79, 79)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE))))
                        .addContainerGap(92, Short.MAX_VALUE))))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jLabel8)
                    .addComponent(jButton3))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton2))
                .addContainerGap(46, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("查看订单", jPanel2);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 372, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        if (sum < 1) {
            JOptionPane.showMessageDialog(this, "购买数量不正确！");
            return;
        } else if (!phoneChosen) {
            JOptionPane.showMessageDialog(this, "未选择产品！");
            return;
        } else if (!expressChosen) {
            JOptionPane.showMessageDialog(this, "未选择快递！");
            return;
        }
        int re = submit();
        if (0 == re) {
            JOptionPane.showMessageDialog(this, "订单提交成功，您可以继续购物！");
            setOrderTable();
        } else if (1 == re) {
            JOptionPane.showMessageDialog(this, "订单提交失败");
        } else {
            JOptionPane.showMessageDialog(this, "库存不足！");
        }
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable1MouseClicked
        // TODO add your handling code here:
        phoneChosen = true;
        setOrder();
    }//GEN-LAST:event_jTable1MouseClicked

    private void jTable2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable2MouseClicked
        // TODO add your handling code here:
        expressChosen = true;
        setOrder();
    }//GEN-LAST:event_jTable2MouseClicked

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField1ActionPerformed

    private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyReleased
        // TODO add your handling code here:
        setOrder();
    }//GEN-LAST:event_jTextField1KeyReleased

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
        String sql = "delete from buy where(buyID='" + selectedOrder + "')";
        adapter.execute(sql);
        if (adapter.isSuccessful()) {
            JOptionPane.showMessageDialog(this, "订单已取消");
            setOrderTable();
        }else {
            JOptionPane.showMessageDialog(this, "无法取消订单！");
        }
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        int number = Integer.valueOf(jTextField3.getText());
        if(selectedOrder.equals("")){
            JOptionPane.showMessageDialog(this, "请选择要修改的订单！");
            return;
        }else if(0 == number){
            JOptionPane.showMessageDialog(this, "请输入订购数量！");
            return;
        }
        String sql = "update buy set buyNumber='" + number + "' where(buyID='" + selectedOrder + "')";
        adapter.execute(sql);
        if (adapter.isSuccessful()) {
            JOptionPane.showMessageDialog(this, "订单已修改");
            setOrderTable();
        }else {
            JOptionPane.showMessageDialog(this, "无法修改订单！");
        }
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jTable3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable3MouseClicked
        // TODO add your handling code here:
        int row = jTable3.getSelectedRow();
        selectedOrder = d[row][0].toString();
        jLabel8.setText(selectedOrder);
        jTextField3.setText(d[row][3].toString());
    }//GEN-LAST:event_jTable3MouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new BuyArea().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    // End of variables declaration//GEN-END:variables
}
